package com.songcha.module_home.ui.activity.more_new_book

import android.app.Application
import com.songcha.library_base.interfaces.IApiResult
import com.songcha.library_base.mvvm.base.BaseRefreshLoadMoreViewModel
import com.songcha.library_business.bean.book.BookListBean
import com.songcha.library_business.bean.book.BookNetBean

class MoreNewBookShelveViewModel(app: Application):BaseRefreshLoadMoreViewModel<MoreNewBookShelveRepository,BookNetBean>(app) {

    fun getNewBookShelveList(){
        handleApiDataObserver(repository!!.getNewBookShelveList(currentPage),object :IApiResult<BookListBean>{
            override fun onSuccess(bean: BookListBean) {
                handleDataListSuccess(bean.data.records)
            }
        },true)
    }

}